|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.admin.hci.InstanceMap
public class InstanceMap
This Java class represents the current instance map of an SAP CC system; It is a named set of InstanceInfo
describing all the instances working for the same SAP CC Core Server system.
The SAP CC system can change its instance map.
InstanceInfo,
GetInstanceMapOp The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="instanceMap">
<xs:complexType>
<xs:sequence>
<xs:element ref="instanceInfo" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="lastModificationDate" type="xs:dateTime" use="required"/>
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this class: "instanceMap" |
| Constructor Summary | |
|---|---|
InstanceMap()
Initializes a new InstanceMap instance without any InstanceInfo; This instance map
must be initialized using the fact it is an XMLMarshallable. |
|
InstanceMap(java.lang.String name,
java.util.Date lastModificationDate,
java.util.List<InstanceInfo> instanceInfos)
Builds a new InstanceMap instance from a list of InstanceInfo. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
void |
assertIsCompatible()
Checks if this instance map is compatible. |
void |
checkValidity()
Checks if the instance map is valid. |
InstanceMap |
clone()
Returns a copy of this instance map; Clone modifications will not modify the original. |
java.util.List<InstanceInfo> |
getDispatchers()
Returns the InstanceInfos of all the declared dispatcher instances; Sorted by instance identifier. |
InstanceInfo |
getInfo(InstanceId instanceId)
Returns the InstanceInfo from the specified istance ID. |
int |
getInstanceCount()
Returns the number of system instances in this map. |
java.util.List<InstanceInfo> |
getInstanceInfo(InstanceType instanceType)
Returns the InstanceInfo of the system instances that have the specified type. |
java.util.List<InstanceInfo> |
getInstances()
Returns the InstanceInfos of all the declared instances; Sorted by instance identifier. |
java.util.Date |
getLastModificationDate()
Returns the last modification date of the instance map. |
java.lang.String |
getName()
Returns the name of the instance map called system name too. |
java.util.List<InstanceInfo> |
getUpdaters()
Returns the InstanceInfos of all the declared updater instances; Sorted by instance identifier. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
java.lang.String |
toString()
Returns a printable form (in XML) of the instance map. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAG_NAME
| Constructor Detail |
|---|
public InstanceMap()
InstanceMap instance without any InstanceInfo; This instance map
must be initialized using the fact it is an XMLMarshallable.
public InstanceMap(java.lang.String name,
java.util.Date lastModificationDate,
java.util.List<InstanceInfo> instanceInfos)
InstanceMap instance from a list of InstanceInfo.
name - The name of the SAP CC system; Can be nulllastModificationDate - The last time this instance map has been modifiedinstanceInfos - A list of valid InstanceInfo (one per instance)
java.lang.IllegalArgumentException - If name is not set| Method Detail |
|---|
public java.lang.String getName()
public int getInstanceCount()
InstanceInfos of this instance mappublic InstanceInfo getInfo(InstanceId instanceId)
InstanceInfo from the specified istance ID.
instanceId - The instance identifier of the expected InstanceInfo
instance information with instanceId as ID if exists; null otherwise.public java.util.Date getLastModificationDate()
public java.util.List<InstanceInfo> getInstances()
InstanceInfos of all the declared instances; Sorted by instance identifier.
public java.util.List<InstanceInfo> getDispatchers()
InstanceInfos of all the declared dispatcher instances; Sorted by instance identifier.
InstanceType.dispatcher; It is empty
if no dispatcher is declared.public java.util.List<InstanceInfo> getUpdaters()
InstanceInfos of all the declared updater instances; Sorted by instance identifier.
InstanceType.updater
if exists; null otherwise.public java.util.List<InstanceInfo> getInstanceInfo(InstanceType instanceType)
InstanceInfo of the system instances that have the specified type.
public void assertIsCompatible()
throws InvalidInstanceException
InvalidInstanceException - If the instance map is not compatible
com.highdeal.util.NullArgumentException - If ed is nullpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
public void checkValidity()
throws InvalidInstanceException
InstanceInfos are valid.
InvalidInstanceException - if the map is malformed or invalidpublic java.lang.String toString()
toString in class java.lang.Objectpublic InstanceMap clone()
clone in class java.lang.Object
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||